# coding=utf-8
# usr/bin/python3

"""
Author: 廖保登
Email: 1311839241@qq.com
WeChat: baodeng1989
date: 2021/1/11 14:35

desc：
"""

from odoo import fields, models, api


class CostComputation(models.Model):
    _name = 'cost.computation'
    _description = 'cost computation'

    accounting_date = fields.Char(string='核算月')
    warehouse_id = fields.Many2one('stock.warehouse',string='仓库')
    product_id = fields.Many2one('product.product',string='产品')
    count = fields.Float(digits=(6, 3), string='结存数量')
    unit_price = fields.Float(digits=(16, 8), string='结存单价')
    total_price = fields.Float(digits=(8, 2), string='结存总金额')

